package com.heima.zuoye.day09.timu6;

import java.io.FileWriter;
import java.io.IOException;

public class Demo1 {
    public static void main(String[] args) {
        try (FileWriter fw = new FileWriter("aaa.txt")){
            fw.write("HelloWorld");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
